
%
% usr information
%
-record(usr,{name,age,sex}).
%
%usr's message
%
-record(msgs,{from,to,body,date}).
%
% offline message
%
-record(offmsgs,{date,to,from,msg}).
%
% user session: name --> sock
%
-record(socksession,{name,sock}).
%
%user session:  sock --> name
%
-record(namesession,{sock,name}).
%
%
%
-record(logsave,{op}).
-record(logpath,{path,mode}).
-record(logfile,{device}).